import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import home from './home'
import search from './search'
import detail from './detail'
import shopcart from './shopcart'
import user from './user'
// 注意配置Vuex时是在Vuex.Store构造函数内 不要光写Vuex
export default new Vuex.Store({
    modules: {
        home,
        search,
        detail,
        shopcart,
        user,
    }
})